<?php
// +-------------------------------------------------------------------
// |
// +-------------------------------------------------------------------
// | Copyright (c) 2009-2016 All rights reserved.
// +-------------------------------------------------------------------
namespace Service\Api\V1;

use Think\Model;

class ServicePaySubmit
{
    public $login = true; //是否需要登录才能访问该接口
    public $title = "物业费缴纳订单提交";
    public $group = '物业缴费';
    public $desc = "";

    public $input = [
        'id' => 'required;int;label=租赁合同id;',
        'pay_type' => 'required;int;label=支付方式;comment=1微信支付 2支付宝支付',
        'buy_num' => 'required;int;label=购买月数;',
    ];

    public $output = [
        'appid' => 'label=appid;',
        'partnerid' => 'label=appid;',
        'prepayid' => 'label=prepayId;',
        'package' => 'label=package;',
        'noncestr' => 'label=appid;',
        'timestamp' => 'label=时间戳;',
        'sign' => 'label=签名;',
    ];

    public function run($param, $uid, $login_info)
    {

        $result = OE('order')->serviceOrderSubmit($param, $uid, $login_info);;

        return $result;
    }
}
